class SceneMian extends Scene {
  constructor(game) {
    super(game)

    let anim = new Animation()
    this.add(anim)


    game.registerAction('a', (state) => {
      if (state === 'down') {
        anim.move(-2)
      } else if (state === 'up') {
        anim.setState('stand')
      }
    })

    game.registerAction('d', (state) => {
      if (state === 'down') {
        anim.move(2)
      } else if (state === 'up') {
        anim.setState('stand')
      }
    })
  }
}